﻿@{
    string systemName = ViewBag.SystemName;
    string title = "Nhà hát thành phố - ";
    switch (systemName)
    {
        case "lan-dieu-phuong-nam":
            title += "Làn điệu phương nam";
            break;
        case "cau-vong-tuoi-tho":
            title += "Cầu vòng tuổi thơ";
            break;
        case "sen-hong":
            title += "Sen hồng";
            break;
        case "hoa-nhac-cuoi-tuan":
            title += "Hòa nhạc cuối tuần";
            break;
        case "mua-thu-mai-mai":
            title += "Mùa thu mãi mãi";
            break;
        default:
            break;
    }
    ViewBag.Title = title;
}

<div class="master-wrapper-center-inner">
@switch (systemName)
    {
        case "lan-dieu-phuong-nam":
            @Html.Partial("LanDieuPhuongNam")
            break;
        case "cau-vong-tuoi-tho":
            @Html.Partial("CauVongTuoiTho")
            break;
        case "sen-hong":
            @Html.Partial("SenHong")
            break;
        case "hoa-nhac-cuoi-tuan":
            @Html.Partial("HoaNhacCuoiTuan")
            break;
        case "mua-thu-mai-mai":
            @Html.Partial("MuaThuMaiMai")
            break;
        default:
            <text>Biễu diễn nghệ thuật</text>
            break;
    }
</div>

@{
    //current opera
    string current = "";
    if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("opera", StringComparison.InvariantCultureIgnoreCase) &&
        Url.RequestContext.RouteData.Values["action"].ToString().Equals("OperaDetails", StringComparison.InvariantCultureIgnoreCase))
    {
        current = Url.RequestContext.RouteData.Values["systemName"].ToString();
    }

    //current activity
    string current_activity = "";
    if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("activity", StringComparison.InvariantCultureIgnoreCase) &&
        Url.RequestContext.RouteData.Values["action"].ToString().Equals("ActivityDetails", StringComparison.InvariantCultureIgnoreCase))
    {
        current_activity = Url.RequestContext.RouteData.Values["systemNameActivity"].ToString();
    }

    //current welfare
    string current_welfare = "";
    if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("welfare", StringComparison.InvariantCultureIgnoreCase) &&
        Url.RequestContext.RouteData.Values["action"].ToString().Equals("WelfareDetails", StringComparison.InvariantCultureIgnoreCase))
    {
        current_welfare = Url.RequestContext.RouteData.Values["systemNameWelfare"].ToString();
    }
}
@section left{
    @Html.Action("OperaNavigation", "Opera", new { active = current })
    <div class="clear">
    </div>
    @Html.Action("ActivityNavigation", "Activity", new { active = current_activity })
    <div class="clear">
    </div>
    @Html.Action("WelfareNavigation", "Welfare", new { active = current_welfare })
}